package com.reform.pojo.common;

import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;
import java.util.List;

import com.baomidou.mybatisplus.annotation.TableId;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 *
 * </p>
 *
 * @author mortale
 * @since 2021-06-27
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel(value="Nav对象", description="")
public class Nav implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId
    @ApiModelProperty(value = "导航编号")
    @TableField("nav_id")
    private Integer navId;

    @ApiModelProperty(value = "导航名称")
    @TableField("nav_name")
    private String navName;

    @ApiModelProperty(value = "路由地址")
    @TableField("nav_path")
    private String navPath;

    @ApiModelProperty(value = "导航路由")
    @TableField("nav_url")
    private String navUrl;

    @ApiModelProperty(value = "导航图标")
    @TableField("nav_icon")
    private String navIcon;

    @ApiModelProperty(value = "父节点")
    private Integer parent;

    @ApiModelProperty(value = "身份 0=>教师  1=>校管理员 2=>院管理院 3=>专家")
    private Integer identify;

    @ApiModelProperty(value = "子菜单")
    @TableField(exist = false)
    private List<Nav> children;


}
